<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<!--suppress HtmlUnknownTarget, HtmlUnknownAttribute, JSUnnecessarySemicolon, HtmlUnknownTag -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${fns:getConfig('productName')}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/layui-2.3.0/css/layui.css">
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/new/css/global.css">
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/new/css/index.css">

	<style type="text/css">
	
	</style>
</head>
<body>
<div class="layui-layout layui-layout-admin" id="layui_layout">
    <!-- 顶部区域 -->
    <div class="layui-header header header-demo">
        <div class="layui-main">
            <!-- logo区域 -->
            <div class="admin-logo-box">
                <a class="logo" href="javascript:;">${fns:getConfig('productName')}</a>
                <div class="larry-side-menu">
                    <i class="fa fa-bars" aria-hidden="true"></i>
                </div>
            </div>
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav larry-header-item ">
                <li class="layui-nav-item" id="userInfo">
                    <a href="javascript:;">
                        <img src="${ctxStatic}/new/images/face.png" class="layui-circle" width="35" height="35">
                        <cite>${fns:getUser().name}</cite>
                    </a>
                    <dl class="layui-nav-child" id="topRightMenu">
                        <dd>
                            <a href="javascript:;" title="个人资料" data-url="${ctx}/sys/user/info"><i class="iconfont icon-jiaoseguanli" data-icon="iconfont icon-zhanghu"></i><cite>个人资料</cite></a>
                        </dd>
                        <dd>
                            <a href="javascript:;" title="修改密码" data-url="${ctx}/sys/user/modifyPwd"><i class="iconfont icon-shezhi1" data-icon="iconfont icon-shezhi1"></i><cite>修改密码</cite></a></dd>
                        <dd>
                            <a href="${ctx}/logout" title="退出" class="signOut"><i class="iconfont icon-role"></i><cite>退出</cite></a>
                        </dd>
                    </dl>
                </li>
            </ul>

        </div>
    </div>
    
    
    <!-- 左侧侧边导航开始 -->
    <div class="layui-side layui-side-bg layui-larry-side" id="larry-side" style="top:50px;">
        <div class="layui-side-scroll" id="larry-nav-side" lay-filter="side">
            <!-- 左侧菜单 -->
            <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="layadmin-system-side-menu">
            <%-- <li class="layui-nav-item " style="margin-top:10px;">
                    <a href="javascript:;" data-id='0' data-url="${ctx}/home">
                        <i class="iconfont icon-home1"></i>
                        <span>后台首页</span>
                    </a>
                </li> --%>	
			 <c:forEach items="${fns:getMenuAndChildListByParentId('70351f08224d4db08bd6cae5548146b2')}" var="menu" varStatus="idxStatus">
	               <li class="layui-nav-item">
	                 	<c:if test="${empty menu.href}">
		                 	 <a href="javascript:;" >
		                       <i class="${menu.icon}" ></i>
		                       <cite>${menu.name}</cite>
		                       <em class="layui-nav-more"></em>
		                     </a>
						</c:if>
	
	                   <dl class="layui-nav-child">
	                     <c:forEach items="${menu.menuList}" var="second" varStatus="seIndex">
	                       <dd>
	                           	<c:if test="${not empty second.menuList}">
		                           <a style="padding-left: 46px !important;" href="javascript:;">
		                           		${second.name}
		                           		<span class="layui-nav-more"></span>
		                           </a>
	                           	</c:if>
	                           	
	                           	<c:if test="${empty second.menuList}">
		                           <a href="javascript:;" data-url="${ctx}${second.href}" title="${second.name}${second.href}">
		                           	<i class="fa fa-file"></i> <span>${second.name}</span>
		                           </a>
	                           	</c:if>
	                           <!-- 三级菜单 -->
	                           <c:if test="${not empty second.menuList}">
				                     <dl class="layui-nav-child">
					                     <c:forEach items="${second.menuList}" var="thread" varStatus="seIndex">
					                    	 <dd>
						                           <a style="padding-left: 52px !important;" href="javascript:;" data-url="${ctx}${thread.href}" >
						                           	 <span>${thread.name}</span>
						                           </a>
						                     </dd>
					                     </c:forEach>
					                   </dl>
	                           </c:if>
	                       </dd>
	                     </c:forEach>
	                   </dl>
	               </li>
               </c:forEach>
            </ul>
        </div>
    </div>

    <!-- 左侧侧边导航结束 -->
    <!-- 右侧主体内容 -->
    <div class="layui-body" id="larry-body" style="bottom: 0;border-left: solid 2px #2299ee;left:196px;">
        <div class="layui-tab layui-tab-card larry-tab-box" id="larry-tab" lay-filter="main-tab" lay-allowclose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" id="admin-home"><i class="fa fa-home"></i><em>首页</em></li>
            </ul>
            <div class="layui-tab-content" style="min-height: 150px; ">
                <div class="layui-tab-item layui-show">
                    <iframe id="mainFrame" name="mainFrame" class="larry-iframe" data-id='0' src="${ctx}/home"></iframe>
                </div>
            </div>
        </div>

    </div>
    <!-- 底部区域 -->
    <div class="layui-footer layui-larry-foot" id="larry-footer">
        <div>
            ${fns:getConfig('copyright')}
        </div>
    </div>
</div>

<script type="text/javascript" src="${ctxStatic}/new/libs/jquery.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/layui-2.3.0/layui.js"></script>
<script type="text/javascript" src="${ctxStatic}/new/js/index.js?v=8"></script>

<link href="${ctxStatic}/jquery-jbox/2.3/Skins/Bootstrap/jbox.min.css" rel="stylesheet" />
<script src="${ctxStatic}/jquery-jbox/2.3/jquery.jBox-2.3.1.min.js" type="text/javascript"></script>

<style type="text/css">

div.jbox .jbox-title-panel{
	-webkit-box-sizing:content-box;
	-moz-box-sizing:content-box;
	box-sizing:content-box;
}
</style>

</body>
</html>
